<template>
    <el-breadcrumb separator="/">
        <el-breadcrumb-item to="/home" v-if="$route.name !== 'home'">home</el-breadcrumb-item>
        <el-breadcrumb-item v-for="(item, index) in routes" v-bind:key="index" v-if="item.meta.level > 1">
            {{ item.name }}
        </el-breadcrumb-item>
    </el-breadcrumb>
</template>

<script>
    export default {
        name: "breadcrumb",
        data(){
          return {
          }
        },
        computed: {
            routes () {
                return this.$store.state.routes
            }
        },
        methods:{
        }
    }
</script>

<style scoped>

</style>
